package cn.koala.key.complaint.entity.enums;

import cn.koala.key.common.enums.HasCaption;
import cn.koala.key.common.enums.HasCode;

/**
 * 客诉级别
 *
 * @author liutao
 * @date 2021/1/14
 */
public enum ComplaintLevelEnum implements HasCode, HasCaption {

    /**
     * 一般
     */
    COMMONLY(1, "一般"),
    /**
     * 重要
     */
    VERY(2, "重要"),
    /**
     * 重大
     */
    EXTREMLY(3, "重大");

    private Integer code;

    private String caption;

    ComplaintLevelEnum(Integer code, String caption) {
        this.code = code;
        this.caption = caption;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getCaption() {
        return caption;
    }
}
